package com.mk.common.controller;

import org.nutz.dao.Dao;
import org.nutz.dao.util.Daos;
import org.nutz.ioc.Ioc;
import org.nutz.mvc.NutConfig;
import org.nutz.mvc.Setup;

public class MainSetup implements Setup
{

	@Override
	public void init(NutConfig nc)
	{
		Ioc ioc = nc.getIoc();
        Dao dao = ioc.get(Dao.class);
        // 如果没有createTablesInPackage,请检查nutz版本
        Daos.createTablesInPackage(dao, "com.mk", false);
	}

	@Override
	public void destroy(NutConfig nc)
	{
		
	}

}
